collect 0s 1s 2s together